package org.jeecg.modules.api.officebalancelog.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商户余额历史Entity
 * @author xinjinbao
 * @version 2019-12-31
 */
@Data
@Accessors(chain = true)
@TableName("t_office_balance_log")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="商户余额历史对象", description="商户余额历史对象")
@DS("lkd")
public class OfficeBalanceLog {

	private static final long serialVersionUID = 1L;

	/**编号*/
	@TableId(type = IdType.ASSIGN_ID)
	protected String id;

	private BigDecimal orderAmount;		//订单金额

	private BigDecimal amount;

	private BigDecimal commissionAmount;		//平台佣金

	private BigDecimal shareAmount;//分享佣金

	private BigDecimal mechanicSonAmount;//技师罚金

	private BigDecimal commissionMechanicAmount; //技师佣金

	private Boolean commissionMechanicBlocked;

	private BigDecimal fareAmount; // 路费

	private BigDecimal couponAmount; // 优惠券

	private Integer channel;

	private String orderId;		//

//	@JsonIgnore
	private Integer status;		// 0：正在充值，1：成功，-1：失败

//	@JsonIgnore
	private Integer accountType;

	private String name;

//	@JsonIgnore
	private String account;

//	@JsonIgnore
// 	private String startDate;
//	@JsonIgnore
// 	private String endDate;
	private BigDecimal moreAmount; // 加钟佣金
	private BigDecimal packAmount; // 套餐佣金
	private BigDecimal mechanicPercent; // 分成比例
	private BigDecimal recAmount; // 推荐佣金

	protected Date createDate;	// 创建日期

	protected Date updateDate;	// 更新日期

	@JSONField(serialize = false)
	protected String delFlag; 	// 删除标记（0：正常；1：删除；2：审核）
}
